home *** CD-ROM | disk | FTP | other *** search
/ TeX 1995 July / TeX CD-ROM July 1995 (Disc 1)(Walnut Creek)(1995).ISO / tex-k / tex-k-archive.past / 1994.12.gz / 1994.12 / 000010_zierke@informat…uni-hamburg.de_Fri Dec 2 08:39:47 1994.msg < prev    next >
Internet Message Format  |  1994-12-30  |  4KB

  1. Received: from rzdspc1.informatik.uni-hamburg.de by cs.umb.edu with SMTP id AA20186
  2.   (5.65c/IDA-1.4.4 for <tex-k@cs.umb.edu>); Fri, 2 Dec 1994 01:40:29 -0500
  3. Received: from rzdspc25.informatik.uni-hamburg.de (zierke@rzdspc25.informatik.uni-hamburg.de [134.100.9.80]) 
  4.     by rzdspc1.informatik.uni-hamburg.de (8.6.9/8.6.9) with ESMTP
  5.     id HAA15836; Fri, 2 Dec 1994 07:39:49 +0100
  6. From: Reinhard Zierke <zierke@informatik.uni-hamburg.de>
  7. Received: (zierke@localhost) by rzdspc25.informatik.uni-hamburg.de (8.6.9/8.6.9) id HAA24695; Fri, 2 Dec 1994 07:39:47 +0100
  8. Message-Id: <199412020639.HAA24695@rzdspc25.informatik.uni-hamburg.de>
  9. Subject: Re:  setting in config.PRINTER does not overred setting in config.ps
  10. To: tex-k@cs.umb.edu
  11. Date: Fri, 2 Dec 1994 07:39:47 +0100 (MET)
  12. Cc: karney@pppl.gov
  13. X-Mailer: ELM [version 2.4 PL24]
  14. Content-Type: text
  15. Content-Length: 3159      
  16.  
  17. > Apparently the resolution setting in config.sparc1 has overridden the
  18. > setting in config.ps while the mode setting has not.  This is contrary to
  19. > the documentation: "Thus, the printer configuration file can override
  20. > anything in the global or user configuration file."
  21. > Shouldn't the precendence for the mode setting thus be: command-line,
  22. > config.PRINTER, .dvipsrc, config.ps, compile-time default
  23. > The fault lies somewhere in the logic in getdefaults in resident.c
  24. >     case 'M' :
  25. >          /* If we had the compilation default, replace it. But
  26. >         if they specified one with -mode, keep it.  */
  27. >          if (!mfmode)
  28. >            mfmode = configstring(was_inline+1, 0) ;
  29. >          break ;
  30. > which prevents the later "M" line from overriding the earlier one.
  31.  
  32. I have sent the following patch to Karl Berry some days ago. It will be
  33. included into the next version of dvipsk.
  34.  
  35. You have to change the files dvips.c and resident.c:
  36.  
  37. *** dvips.c.ORIG    Sun Oct 23 22:58:23 1994
  38. --- dvips.c    Sun Nov 27 17:15:58 1994
  39. ***************
  40. *** 129,134 ****
  41. --- 129,135 ----
  42.   Boolean disablecomments ;     /* should we suppress any EPSF comments? */
  43.   char *printer ;               /* what printer to send this to? */
  44.   char *mfmode;                  /* default MF mode */
  45. + int  mfmode_option;           /* MF mode set with -mode? */
  46.   frametype frames[MAXFRAME] ;  /* stack for virtual fonts */
  47.   fontdesctype *baseFonts[256] ; /* base fonts for dvi file */
  48.   integer pagecost;               /* memory used on the page being prescanned */
  49. ***************
  50. *** 348,353 ****
  51. --- 349,355 ----
  52.      disablecomments = 0 ;
  53.      maxdrift = -1 ;
  54.      vmaxdrift = -1 ;
  55. +    mfmode_option = 0;
  56.   }
  57.   /*
  58.    *   This routine copies a string into the string `pool', safely.
  59. ***************
  60. *** 443,449 ****
  61.      int firstext = -1 ;
  62.   #endif
  63.      register sectiontype *sects ;
  64. -    int mfmode_option = 0;
  65.   
  66.      kpse_set_progname (argv[0]);
  67.      
  68. --- 445,450 ----
  69.  
  70. *** resident.c.ORIG    Sun Oct 23 22:54:01 1994
  71. --- resident.c    Sun Nov 27 17:28:39 1994
  72. ***************
  73. *** 82,87 ****
  74. --- 82,88 ----
  75.   extern int vmaxdrift ;
  76.   extern char *printer ;
  77.   extern char *mfmode ;
  78. + extern int mfmode_option ;
  79.   extern Boolean sendcontrolD ;
  80.   extern unsigned lastresortsizes[] ;
  81.   extern integer hoff, voff ;
  82. ***************
  83. *** 403,409 ****
  84.   case 'M' :
  85.            /* If we had the compilation default, replace it. But
  86.               if they specified one with -mode, keep it.  */
  87. !          if (!mfmode)
  88.              mfmode = configstring(was_inline+1, 0) ;
  89.            break ;
  90.   case 'o' :
  91. --- 404,410 ----
  92.   case 'M' :
  93.            /* If we had the compilation default, replace it. But
  94.               if they specified one with -mode, keep it.  */
  95. !          if (!mfmode_option)
  96.              mfmode = configstring(was_inline+1, 0) ;
  97.            break ;
  98.   case 'o' :
  99.  
  100. Cheers,
  101.   Reinhard
  102.  
  103. -- 
  104. Reinhard Zierke                      Universitaet Hamburg, FB Informatik
  105. zierke@informatik.uni-hamburg.de     Vogt-Koelln-Strasse 30, D-22527 Hamburg
  106. postmaster@informatik.uni-hamburg.de Tel.: (040) 54715-295/276  Fax: -241
  107. ++ Unix IS user friendly. It's just selective about who its friends are ++